﻿using JshRCSWebApi.Service;  
using JshRCSWebApi.Service.SysVehicle;
using JshRCSWebApi.Service.ToolService;
using JshRCSWebApi.ServiceImpl;  
using JshRCSWebApi.ServiceImpl.SysVehicle;
using JshRCSWebApi.ServiceImpl.Tool;

namespace JshRCSWebApi.API.Utility.SqlSugar
{
    public static class ConfigRepository
    {
        public static void AddConfigureServices(this IServiceCollection services)
        {
            services.AddScoped(typeof(Repository<>));
            services.AddScoped<BaseService, BaseServiceImpl>();
            #region SysService注册
            services.AddScoped<UserService, UserServiceImpl>();
            services.AddScoped<MenuService, MenuServiceImpl>();
            services.AddScoped<RoleService, RoleServiceImpl>();
            services.AddScoped<DepartmentService, DepartmentServiceImpl>();
            services.AddScoped<LogService, LogServiceImpl>();
            services.AddScoped<DictionaryService, DictionaryServiceImpl>();
            #endregion
             

            #region SysVehicle注册 
            services.AddScoped<VehicleConfigService, VehicleConfigServiceImpl>();
            services.AddScoped<VehicleControlService, VehicleControlServiceImpl>();
            services.AddScoped<VehicleOtherService, VehicleOtherServiceImpl>();
            services.AddScoped<VehicleStateService, VehicleStateServiceImpl>();
            services.AddScoped<VehicleTaskService, VehicleTaskServiceImpl>();
            services.AddScoped<VehiclePushService, VehiclePushServiceImpl>();
            #endregion
             

            #region ToolService注册
            services.AddScoped<ToolService, ToolServiceImpl>();
            #endregion

        }
    }
}
